package com.sinosoft.tcmcp.system.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 系统资源配置页面
 * @author xiaoxiong
 *
 */
@Controller
@RequestMapping("system")
public class SystemController {
	
	/**
	 * 默认页面，应用菜单
	 * @return	应用菜单页面
	 */
	@RequestMapping(method = RequestMethod.GET)
	public String list() {
		return "app/indexmenu";
	}

	@RequestMapping(value = "/appJsp", method = RequestMethod.GET)
	public String applicationJsp() {
		return "application/application";
	}

	@RequestMapping(value = "/resourceJsp", method = RequestMethod.GET)
	public String resourceJsp() {
		return "application/resources";
	}

	@RequestMapping(value = "/organizationJsp", method = RequestMethod.GET)
	public String organizationJsp() {
		return "organization/organization";
	}

	@RequestMapping(value = "/groupsJsp", method = RequestMethod.GET)
	public String groupsJsp() {
		return "organization/groups";
	}

	@RequestMapping(value = "/personJsp", method = RequestMethod.GET)
	public String personJsp() {
		return "organization/person";
	}

	@RequestMapping(value = "/rolseJsp", method = RequestMethod.GET)
	public String rolseJsp() {
		return "role/role";
	}
	  
	@RequestMapping(value="/permissionJsp", method = RequestMethod.GET)
	public String permissionJsp() {
	    return "role/permission";
	}
	@RequestMapping(value = "/userJsp", method = RequestMethod.GET)
	public String userJsp() {
		return "role/user";
	}
	
	@RequestMapping(value = "/dictJsp", method = RequestMethod.GET)
	public String dictJsp() {
		return "dict/dict";
	}
	  
	@RequestMapping(value="/parameterJsp", method = RequestMethod.GET)
	public String parameterJsp() {
	    return "parameter/parameter";
	}
}
